package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.TIlogTransferLogModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by lusong on 2017/5/18.
 */
public interface TIlogTransferLogRepository extends JpaRepository<TIlogTransferLogModel, Integer>, JpaSpecificationExecutor<TIlogTransferLogModel> {

    @Query("select a from TIlogTransferLogModel a where a.permit = ?1")
    List<TIlogTransferLogModel> findILogTransferModel(String permit);
}
